import React, {Component} from 'react';
import {Button, message} from "antd";
import "./App.less";

class App extends Component {
    handleClick = () => {
        message.success("成功!");
    };

    render() {
        return (
            <div className="App">
                <Button type="primary" block onClick={this.handleClick}>点击</Button>
            </div>
        );
    }
}

export default App;
